package cn.tedu.egmvc1.controller;

import cn.tedu.egmvc1.controller.pojo.dto.AddressAto;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AddressController {
    @RequestMapping("/address/insert")
    @ResponseBody
    public String insertAddress(AddressAto addressAto)
    {
        System.out.println(addressAto);
        return "添加成功";
    }

    @RequestMapping("/address/select")
    @ResponseBody
    public String selectAddress()
    {
        return "查询成功";
    }

    @RequestMapping("address/delete")
    @ResponseBody
    public String deleteAddress(Integer id)
    {
        System.out.println(id);
        return "删除成功";
    }

    @RequestMapping("/address/update")
    @ResponseBody
    public String updateAddress(AddressAto addressAto)
    {
        System.out.println(addressAto);
        return "修改成功";
    }

}
